FROM ubuntu:22.04
RUN sed -i 's/archive/cn.archive/g' /etc/apt/sources.list \
  && apt-get update \
  && apt-get install -y systemd python2 curl \
  && curl -L -o /usr/bin/systemctl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py \
  && chmod +x /usr/bin/systemctl \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]
